package net.longjin.enums;

/**
 * @author ：何志鹏
 * @date ：Created in 2020/11/12 16:08
 * @description：业务状态码枚举类
 * @modified By：
 */
public enum ResBizCode {
    SUCCESS(200, "成功"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    EMPTY_PARAMETER_ERROR(1001, "参数不能为空"),
    EMPTY_TOKEN_ERROR(1002, "token不能为空"),
    OPERA_ERROR(601, "操作失败");


    /**
     * 代码
     */
    private int code;
    /**
     * 提示信息
     */
    private String msg;

    ResBizCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
